From: Florian Müllner Date: Thu, 4 Aug 2022 22:39:47 +0000 (+0200) Subject: status/network: Notify icon change after access-point update X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~143 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5e533e5f778c8f61293f3f7f12fb69849893ca2f;p=gnome-shell.git status/network: Notify icon change after access-point update We call sync() which updates our own label and icon, but does not notify the indicator about the icon change. Part-of: --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 904abf584..d6cad5624 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1329,19 +1329,14 @@ var NMDeviceWireless = class extends Signals.EventEmitter { this._dialog = null; } - _strengthChanged() { - this._iconChanged(); - } - _activeApChanged() { this._activeAccessPoint?.disconnectObject(this); - this._activeAccessPoint = this._device.active_access_point; + this._activeAccessPoint?.connectObject( + 'notify::strength', () => this._iconChanged(), + this); - this._activeAccessPoint?.connectObject('notify::strength', - this._strengthChanged.bind(this), this); - - this._sync(); + this._iconChanged(); } _sync() {